package com.Supermarket.Exception;

import com.Supermarket.enums.MyExceptionEnum;

public class MyException extends RuntimeException {
	
	private Integer code;
	
	public MyException(MyExceptionEnum myExceptionEnum) {
		super(myExceptionEnum.getMsg());
		this.code = myExceptionEnum.getCode();	
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
	
	
}
